<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$id = get_input('guid');

$comments = get_drawing_comments_on($id);

$results = array();
foreach ($comments as $comment) {
    $results[] = to_drawing_comment_array($comment);
}

echo json_encode(export_result(200, $results));

?>
